using namespace std;

#include "stdafx.h"
#include "graphics/GrVector.h"
#include <vector>
#include <cmath>
#include <string>

#pragma once

class CSGPrismatoid
{
public:
	CSGPrismatoid(double t1, double t2, double b1, double b2, double leg, unsigned fn, double sd=0, unsigned Ty=0);
	~CSGPrismatoid();
	void Render();

private:
	unsigned Type;   //{0:DISJOIN, 1:JOIN,2:HEADER,3:FOOTER,4:CONE};
	void CSGPrismatoid::Compute();
	bool vaild;
	unsigned face_no;
	double length;
	double rad_top1;
	double rad_top2; 
	double rad_bottom1;
	double rad_bottom2;
	double start_deg;
	vector<CGrVector> top;
	vector<CGrVector> bottom;
	vector<CGrVector> faceNorm;

};
